/*
 * GetAllNodeResultSearchForTable.java
 *
 * Created on 28 de mayo de 2006, 17:13
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package fmap.actions.mapF;

import fmap.DatosCompartidos;
import fmap.model.Node;
import java.util.Vector;

/**
 *
 * @author javi
 */
public class GetAllNodeResultSearchForTable
{

    public GetAllNodeResultSearchForTable ()
    {}

    public Vector getAllNodeResultSearchForTable ( int idMapF )
    {
        Vector vReturn = new Vector ();
        
        Vector vNodes = new fmap.dao.NodeDao().selectAllNodesNameResultSearchMapF ( idMapF );
        
        
        if( vNodes != null && vNodes.size ()>0 )
        {
            for(int i=0; i<vNodes.size(); i++)
            {
                Vector vFila = new Vector ();
                
                Node n = (Node)vNodes.get (i);
                
                vFila.add ( n );
                vFila.add ( n.getSizeString () );
                vFila.add ( n.getDateString () );
                
                vReturn.add ( vFila );
            }
        }
        else return null;

        return vReturn;
    }
}